package matrice;

import java.util.Iterator;

public class Multiplication extends Matrice {

	private int coef;
	private Iterator<Poid> i;
	
	public Multiplication(Matrice d, int coef) {
		this.coef =coef;
		i = d;
	}

	@Override
	public boolean hasNext() {
		return i.hasNext();
	}

	@Override
	public Poid next() {
		Poid p = i.next();
		p.setNbVoisin(p.getNbVoisin()*coef);
		return p;
	}

}
